<?php
/**
 *
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2019/5/29
 * @copyright PanxSoft Inc.
 */
namespace App\Models;

use App\Models\Concerns\ScopeFilterable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;

/**
 * RegisterAgreement - 用户协议多语言文本
 *
 * @package App\Models
 * @mixin Builder
 */
class RegisterAgreement extends Model
{
    use ScopeFilterable;

    const TYPE_REGISTER_AGREEMENT = 1;
    const TYPE_USER_POLICY = 2;

    protected static $unguarded = true;

    protected $table = 'register_agreements';

    protected $primaryKey = 'id';

    protected $casts = [
        'type'        => 'int',
        'language_id' => 'int',
    ];
}
